home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr22
/
fcheck10.zip
/
CHECK.BAT
next >
Wrap
DOS Batch File
|
1993-06-19
|
2KB
|
48 lines
@echo off
REM Note: I wrote this batch file for the purpose of comparing files on
REM my hard disk with a CD-ROM version of the files.
REM It can be used to verify between any number of media or drives
echo.
echo File comparing, recursing directories starting at %3
echo.
REM
REM
REM by Dr. W. Curtiss Priest
REM Center for Information, Technology and Society
REM 466 Pleasant St.
REM Melrose, MA 02173
REM Internet: bmslib@mitvma.mit.edu
REM Voice: 617-862-7763
REM ____________________________________________________________________
REM ********************************************************************
REM Repeat -- repeat an operation using "macros" and wildcards
REM
REM The following example permits a verify of all files on one
REM drive with all files on another drive, starting at a specified
REM directory and all sub-directories
REM Modify wildcard and program to suit your own interests
if "%1" == "" goto explain
if "%2" == "" goto explain
REM make sure we start on the first drive
%1:
REM $p1 is the PATH (without drive,with \), $f is the filename, fc is DOS's file compare
REM / means to recurse down the subdirectories (\ will not)
REM if the paths are not the same from one drive to another, then
REM edit to add or remove path names after %1: and/or %2:
repeat fc %1:$p1\$f %2:$p1\$f for \%3/*.*
goto done
:explain
echo By W. Curtiss Priest
echo.
echo Format: CHECK DRIVE1 DRIVE2 PATH
echo.
echo Example:
echo CHECK D E [MYPATH]
echo [ ] -- optional, if missing uses the root
echo (do not enter \, [ or :)
:done